<?php
/**
 * OaEmpAttendance数据模型
 */
class OaEmpAttendanceTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_emp_attendance',
			'title' => '考勤',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => 0,
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [ ];
	
	// 字段定义
	public $fields = [
			'appid' => [
					'title' => '小程序appid',
					'field' => 'varchar(255) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'type' => [
					'title' => '打开类型',
					'type' => 'num',
					'field' => 'int(4) NOT NULL',
					'extra' => '0:上午上班打卡
1:上午上班打卡
2:下午上班打卡
3:下午下班打卡',
					'remark' => '0:上午上班打卡；1:上午上班打卡；2:下午上班打卡；3:下午下班打卡',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'emp_id' => [
					'title' => '员工ID',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'time' => [
					'title' => '打卡时间',
					'type' => 'datetime',
					'field' => 'int(10) NULL',
					'placeholder' => '请输入内容'
			],
			'statement' => [
					'title' => '声明',
					'type' => 'string',
					'field' => 'varchar(200) NULL',
					'placeholder' => '请输入内容'
			],
			'remark' => [
					'title' => '备注',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'status' => [
					'title' => '状态',
					'field' => 'varchar(50) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'location' => [
					'title' => '打卡位置',
					'type' => 'string',
					'field' => 'varchar(512) NOT NULL',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'time2nd' => [
					'title' => '最后打卡',
					'type' => 'datetime',
					'field' => 'int(10) NULL',
					'remark' => '记录最后一次打卡时间',
					'is_show' => 1,
					'is_must' => 0
			],
			'date' => [
					'title' => '记录日期',
					'type' => 'date',
					'field' => 'int(10) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'location2nd' => [
					'title' => '最后位置',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			]
	];
}	